<template>
	<view class="plat flex-center-column">
		<view class="list-box">
			<view @click="goPage(0)" class="list flex-between">
				<image src="/static/1.jpg" mode="aspectFill" class="left"></image>
				<view class="right flex-between">
					<view class="info">
						<view class="h3">OKEX</view>
						<view class="p">
							跟随返佣/张 
							<text>10.0000LK</text>
						</view>
					</view>
					<image src="/static/arrow.png" mode="widthFix"></image>
				</view>
			</view>
			<view @click="goPage(1,'GOEX')" class="list flex-between">
				<image src="/static/1.jpg" mode="aspectFill" class="left"></image>
				<view class="right flex-between">
					<view class="info">
						<view class="h3">GOEX</view>
						<view class="p">
							跟随返佣/张 
							<text>10.0000LK</text>
						</view>
					</view>
					<image src="/static/arrow.png" mode="widthFix"></image>
				</view>
			</view>
			<view @click="goPage(2,'Huobi')" class="list flex-between">
				<image src="/static/1.jpg" mode="aspectFill" class="left"></image>
				<view class="right flex-between">
					<view class="info">
						<view class="h3">Huobi</view>
						<view class="p">
							跟随返佣/张 
							<text>10.0000LK</text>
						</view>
					</view>
					<image src="/static/arrow.png" mode="widthFix"></image>
				</view>
			</view>
			
		</view>
		
		<view class="bottom-tip">
			<view class="p">根据风险和盈利水平分析，选择跟随最佳的交易员。</view>
			<view class="p">在交易平台创建API请勾选“交易”类型，否则将无法跟随。</view>
			<view class="p">跟随手续费/张：10000USD为一张</view>
		</view>
		<!-- 筛选弹窗 -->
		<view class="popup flex" v-if="showPopup" @click="closePopup">
			<view class="box" @click.stop>
				<view class="top flex-center">
					<text>API类型选择</text>
				</view>
				<block  v-for="(item,index) in types" :key="index">
					<navigator url="/pages/net/connect?title=OKEX" hover-class="none" class="flex-center popup-list">
						{{item}}
					</navigator>
				</block>
				
				<view class="flex-between btns">
					<view @click="showPopup = !showPopup" class="reset btn flex-center">取消</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showPopup:false,
				types:['V3 API绑定','V5 API绑定'],
			};
		},
		methods:{
			goPage(index,name){
				if(index == 0){
					this.showPopup = true;
				}else{
					uni.navigateTo({
						url:"/pages/net/connect?title=" + name
					})
				}
			}
		}
	}
</script>

<style lang="less">
	page{
		background: white;
	}
	@color:#d4237a;
	.plat{
		padding:0 24rpx;
		height: 100vh;
		justify-content: space-between;
		.list-box{
			width: 100%;
		}
		.list{
			
			margin: 50rpx 0;
			.left{
				width: 100rpx;
				height: 100rpx;
				padding: 0 20rpx;
			}
			.right{
				border:1px solid #f2f2f2;
				border-radius: 10rpx;
				padding: 30rpx 10rpx 30rpx 30rpx;
				image{
					width: 24rpx;
					height:auto;
					
				}
				.info{
					width: 470rpx;
					.h3{
						font-size: 34rpx;
						font-weight: bold;
					}
					.p{
						font-size: 24rpx;
						color:#999;
						text{
							font-size: 28rpx;
							color:#000;
							margin-left: 10rpx;
						}
					}
				}
			}
		}
		
		.bottom-tip{
			width: 100%;
			padding-bottom: 60rpx;
			.p{
				font-size: 24rpx;
				line-height: 1.8;
			}
		}
		
		.popup {
			position: fixed;
			top: 0;
			left: 0;
			width: 100vw;
			height: 100vh;
			background: rgba(0, 0, 0, .5);
			z-index: 10;
			align-items: flex-end;
		
			.box {
				width: 100vw;
				background: white;
				border-radius: 20rpx 20rpx 0 0;
				padding: 30rpx 20rpx 80rpx;
		
				.top {
					margin-bottom: 15rpx;
					text{
						font-size: 24rpx;
						color:#999;
					}
				}
		
				.popup-list{
					line-height: 2.5;
					font-size: 32rpx;
					font-weight: bold;
					border-bottom: 1px solid #eee;
				}
		
				.btns {
					margin-top: 30rpx;
		
					.btn {
						width: 100%;
						height: 80rpx;
						border-radius: 40rpx;
						background: #eee;
						font-size: 30rpx;
						font-weight: bold;
					}
				}
			}
		}
	}
</style>
